#pragma once
#include "baseoperator.h"
#include "AddInBaseOperator.h"

class CPolylineEntity;
class CDialogParam;

class CDrawPolylineOperator :
	public CAddInBaseOperator
{
public:
	CDrawPolylineOperator(HDiMineView* view,IDMAddIn *addin);
	~CDrawPolylineOperator(void);

	virtual int Init();
	virtual void OnExit();

	virtual int OnLButtonDown(dmEventInfo &hevent);
	virtual int OnNoButtonDownAndMove(dmEventInfo &hevent);
	virtual int OnRButtonDown(dmEventInfo &hevent);
private:
	dmDbPolyline *m_pPolylineEnt;
	CdmLayerBase *m_pTempLayer;
	CDialogParam *m_pParamDlg;
};
